package model

import (
	"gorm.io/gorm"
	"time"
)

type Menu struct {
	ID         uint           `gorm:"primarykey" json:"id"`
	CreatedAt  time.Time      `json:"created_at"`
	UpdatedAt  time.Time      `json:"updated_at"`
	DeletedAt  gorm.DeletedAt `gorm:"index" json:"deleted_at"`
	Name       string         `json:"name"`
	Title      string         `json:"title"`
	Icon       string         `json:"icon"`
	Badge      string         `json:"badge"`
	Target     string         `json:"target"`
	Path       string         `json:"path"`
	Component  string         `json:"component"`
	RenderMenu bool           `json:"render_menu"`
	Parent     string         `json:"parent"`
	Permission string         `json:"permission"`
	Cacheable  bool           `json:"cacheable"`
	Link       string         `json:"link"`
}
